import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department";
import Employee from "./views/org/Employee";
import SystemDictionaryType from "./views/org/SystemDictionaryType";
import SystemDictionaryDetail from "./views/org/SystemDictionaryDetail";
import ShopRegister from "./views/ShopRegister";
import Shop from "./views/org/Shop";
import SearchMasterMsgPending from "./views/pet/SearchMasterMsgPending";
import SearchMasterMsgProcessed from "./views/pet/SearchMasterMsgProcessed";
import Pet from "./views/pet/Pet";
import WxUser from "./views/org/WxUser";
import AdoptOrder from "./order/AdoptOrder";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'el-icon-s-home',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '组织机构模块',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理'},
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' },
            { path: '/WxUser', component: WxUser, name: '微信用户管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '宠物模块',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            { path: '/searchMasterMsgPending', component: SearchMasterMsgPending, name: '待处理消息ping' },
            { path: '/searchMasterMsgProcessed', component: SearchMasterMsgProcessed, name: '已处理消息pro' },
            { path: '/pet', component: Pet, name: '宠物信息' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单管理',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            { path: '/adoptOrder', component: AdoptOrder, name: '订单详情' },

        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统模块',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            { path: '/systemdictionarytype', component:SystemDictionaryType, name: '数据字典类型'},
            { path: '/systemdictionarydetail', component: SystemDictionaryDetail, name: '数据字典明细' },
            { path: '/', component: Table, name: '数据字典' },
        ]
    },

];

export default routes;